.import-export-demo {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: white;
}

.import-export-demo h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.demo-section {
  margin-bottom: 3rem;
}

.demo-section h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 500;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.demo-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.demo-card h4 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffd700;
}

.demo-card p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.demo-card code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.demo-item {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.demo-item input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

.demo-item button {
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-item button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.demo-card pre {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  overflow-x: auto;
  margin: 0.5rem 0;
}

.demo-card ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.demo-card li {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.code-examples {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.code-examples h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 500;
}

.code-section {
  margin-bottom: 2rem;
}

.code-section h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffd700;
}

.code-section pre {
  background: rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-x: auto;
  border-left: 4px solid #ffd700;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .import-export-demo {
    margin: 1rem;
    padding: 1rem;
  }
  
  .import-export-demo h2 {
    font-size: 2rem;
  }
  
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .demo-card {
    padding: 1rem;
  }
  
  .code-examples {
    padding: 1rem;
  }
  
  .code-section pre {
    font-size: 0.8rem;
    padding: 1rem;
  }
} 